package com.amkai.aes.webservice.binary.objecthandler;

import java.io.Serializable;

import com.amkai.aes.aescommon.service.binary.job.AgingCalculatorJob;
import com.amkai.aes.aescommon.service.result.billing.AgingCalculatorResult;
import com.amkai.aes.server.billing.AgingCalculatorManager;
import com.amkai.aes.webservice.binary.JobObjectHandler;

public class AgingCalculatorHandler implements JobObjectHandler<AgingCalculatorJob, Serializable, AgingCalculatorResult>{

	@Override
	public AgingCalculatorResult process(AgingCalculatorJob job, Serializable object) throws Exception {
		try{
			return AgingCalculatorManager.calculate(job);
		}catch(Exception exception){
			throw exception;
		}
	}
}
